import http from '@/utils/axios'
export interface IPageQuery {
  pageNum?: number
  pageSize?: number
}
export interface IQueryUser extends IPageQuery {
  name?: string
  startDate?: string
  endDate?: string
}
export const GET_ROLE_LIST = (params: IQueryUser) => {
  return http({
    url: '/getRoles',
    method: 'GET',
    params
  })
}
export const DELETE_ROLE = (id: string) => {
  return http({
    url: `/deleteRole?id=${id}`,
    method: 'GET'
  })
}
export const GET_ROLE_DETAIL = (id: string) => {
  return http({
    url: '/getRoleDetail',
    method: 'POST',
    data: { id }
  })
}
